package creationalPatterns.factorymethod;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {		

		//�Ϲ���
		AbstractFactory factoryA = new FactoryA();
		factoryA.createProduct("ProductA");
		factoryA.createProduct("ProductB");		
		
		//������Ҫ������Product C�����¹���
		AbstractFactory factoryB = new FactoryB();
		factoryB.createProduct("ProductA");
		factoryB.createProduct("ProductB");	
		factoryB.createProduct("ProductC");
		
	}

	
}
